package com.min.log

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

class LogPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {
        def appExtensions = project.extensions.getByType(AppExtension)
        println("log插件，对class类进行处理")
        appExtensions.registerTransform(new LogTransform(project))
    }
}